package cn.edu.nju.freshdelivery.model;

import java.util.HashSet;
import java.util.Set;

/**
 * Dish entity. @author MyEclipse Persistence Tools
 */

public class Dish implements java.io.Serializable {

	// Fields

	private Integer id;
	private Seller seller;
	private String name;
	private Double price;
	private String description;
	private String photo;
	private Integer star;
	private String catagory;
	private boolean discounted;
	private double curPrice;
	private Set comments = new HashSet(0);
	private Set orderdetails = new HashSet(0);

	// Constructors

	/** default constructor */
	public Dish() {
	}

	/** minimal constructor */
	public Dish(Seller seller, String name, Double price, String description,
			String photo, Integer star, String catagory) {
		this.seller = seller;
		this.name = name;
		this.price = price;
		this.description = description;
		this.photo = photo;
		this.star = star;
		this.catagory = catagory;
	}

	/** full constructor */
	public Dish(Seller seller, String name, Double price, String description,
			String photo, Integer star, String catagory, Set comments,
			Set orderdetails) {
		this.seller = seller;
		this.name = name;
		this.price = price;
		this.description = description;
		this.photo = photo;
		this.star = star;
		this.catagory = catagory;
		this.comments = comments;
		this.orderdetails = orderdetails;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Seller getSeller() {
		return this.seller;
	}

	public void setSeller(Seller seller) {
		this.seller = seller;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getPhoto() {
		return this.photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public Integer getStar() {
		return this.star;
	}

	public void setStar(Integer star) {
		this.star = star;
	}

	public String getCatagory() {
		return this.catagory;
	}

	public void setCatagory(String catagory) {
		this.catagory = catagory;
	}

	public boolean isDiscounted() {
		return discounted;
	}

	public void setDiscounted(boolean discounted) {
		this.discounted = discounted;
	}

	public double getCurPrice() {
		return curPrice;
	}

	public void setCurPrice(double curPrice) {
		this.curPrice = curPrice;
	}

	public Set getComments() {
		return this.comments;
	}

	public void setComments(Set comments) {
		this.comments = comments;
	}

	public Set getOrderdetails() {
		return this.orderdetails;
	}

	public void setOrderdetails(Set orderdetails) {
		this.orderdetails = orderdetails;
	}

}